﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWeb.Master" Inherits="System.Web.Mvc.ViewPage<LangMauViet.Models.Entity.Video>" %>
<%@ Import Namespace="LangMauViet.Classes.Helper" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    langmauviet.vn - <%=Model.Name %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script>
    videojs.options.flash.swf = "video-js.swf";
  </script>
<% 
    var video = (Video)ViewData["DetailVideo"];
    var hotVideo = (List<Video>)ViewData["lVideoHotWeb"];
    var newVideo = (List<Video>)ViewData["nlistHotWeb"]; 
    
%>
       <div class="container watch-container">
                                    
<div id="watch-region" itemscope="" itemtype="http://schema.org/VideoObject" >
      <% if (!ReferenceEquals(video, null))
         { %>
    <h2><span><%= video.Name %></span></h2>
     <center>
<%--         <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="630" height="264"
      poster="http://video-js.zencoder.com/oceans-clip.png"
      data-setup="{}">
    <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
  </video>--%>
            <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none"  width="630" height="364"
                width="80%" height="400" poster="http://vipmobi.net:7001/mobile/download?v=1&w=150&h=150&id=<%=video.Icon%>"
                data-setup="{}">
                <source src="<%=video.Url%>" type='video/mp4' />
 
            </video>
            <div class="left clear" style="width: 100%; margin-top: 20px;">
                <%=video.Name %>
            </div>
        </center>
        <% } %>
</div>





<div id="main-content">
    <div id="watch-content" class="box">
     
   
        <div id="relatedClipCarousel-yw0" class="box carousel slide offslide clearfix">
    <div class="box-header playlist-featured">
        <h3>Video mới</h3>
    </div>
    <div class="box-content box-clip">
                <div class="carousel-inner">
                                    <div class="item active">
                <div class="vlist clearfix">
                    <div class="vlist-inner clearfix">
                                                    <ul>
                                                  <% if (!ReferenceEquals(newVideo, null))
                                    {
                                        int j = 2;
                                        for (int i = 0; i < newVideo.Count; i++)
                                        {
                                            Video newse = newVideo.ElementAt(i);
                                         %>
                                         <% if (i==j)
                                            {
                                                j += 3;
                                         %>
                                         <li class="vitem vlarge last"> 
                                             <% }
                                            else
                                            { %>
                                             <li class="vitem vlarge">
                                             <% } %>
                                                
                                        <a title="<%= newse.Name %>" href="/Video/Chi-tiet/<%= newse.VideoId %>/<%=UIHelper.convertToUnSign(newse.Name) %>" class="vlink">
                                            <div class="vthumb">
                                                <img alt="<%= newse.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=500&h=500&id=<%= newse.Icon %>">
                                               </div>
                                            <h4 class="max-line-2"><%= newse.Name %></h4>
                                        </a>
                                    </li>
                                               
                                                <% }
                                    } %>                                                                      
                                                   
                                           </ul>
                      </div>
                </div>
            </div>
                    </div>
    </div>
</div>

    </div>
</div>
<div id="sidebar" class="watch-sidebar">
   <%--   <div class="box2">
            <div class="ajaxads" data-id="watchpage*right_banner">
                <iframe width="300px" height="250px" src="./Sốt với Ngọc Trinh múa cột khêu gợi trên biển Thái Lan - langmauviet.vn_files/4.htm" frameborder="0" allowfullscreen=""></iframe>
            </div>        </div>--%>
            <div class="box2 clearfix">
        <div class="box-header">
            <h3>Video Hot</h3>
        </div>
        <div class="box-content box-clip nano has-scrollbarp has-scrollbar">
            <div class="vlist vrecent recentclip-block vscroll sliderContent clearfix" tabindex="0" style="right: -17px;">
                <ul>
                        <% if (!ReferenceEquals(hotVideo, null))
               {
                   foreach (Video v in hotVideo)
                   {
              %>
               <li class="vitem vsmall vvertical">
                            <a title="<%= v.Name%>" href="/Video/Chi-tiet/<%= v.VideoId %>/<%=UIHelper.convertToUnSign(v.Name) %>" class="vlink">
                                <div class="vthumb">
                                    <img src="http://vipmobi.net:7001/mobile/download?v=1&w=150&h=150&id=<%=v.Icon%>">
                                   <!-- <span class="vticker">03:38</span>
                                    <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại" data-cid="1556189"><i class="icon-time"></i></span>       -->
                                  </div>
                                <h4><%= v.Name%></h4>
                            </a>
                        </li>
              
              
               <%    }
               }%>
                          
                                    </ul>
            </div>
    
    
    
    
        <div class="pane" style="opacity: 1; visibility: visible;"><div class="slider" style="height: 87px; top: 173.74830852503382px;"></div></div></div>
    </div>  
    
    
    
    
    
    
    
    
    

     
    
    <div class="box2" id="box_widget" style="position: static; top: auto; width: 300px; left: 849.5px; margin-top: 0px;">
            </div>

</div>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
